package shiqi.AdapterPattern.Class;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.aop.BeforeAdvice;

import java.lang.reflect.Method;
@Aspect
public class RobotMethodAdvice {
    /*
    method是目标类的方法；objects是目标类方法的入参；而o为目标类实例
     *//*
    public void before(Method method, Object[] objects, Object o) throws Throwable {

        System.out.println("机器人模仿：");
    }*/
    @Before("execution(public * shiqi.AdapterPattern.Class.DogAapter.*(..))")
    public void before() {
        System.out.println("机器人模仿");
    }

}
